package com.eqdd.yiqidian.bean;

import com.jhj.datalibrary.model.BaseTree;

import java.util.List;

/**
 * Created by jhj on 18-9-29.
 */

public class TypeTreeBean extends BaseTree<TypeTreeBean> {
    private String id;
    private String name;
    private List<TypeTreeBean> children;
    private boolean root;

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setChildren(List<TypeTreeBean> children) {
        this.children = children;
    }

    public void setRoot(boolean root) {
        this.root = root;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public List<TypeTreeBean> getChildren() {
        return children;
    }

    @Override
    public boolean isRoot() {
        return children != null;
    }
}
